//
//  XGCalendarDataSource.h
//  SACalendar
//
//  Created by YaoZhaofeng on 15/4/20.
//  Copyright (c) 2015年 SyncoApp. All rights reserved.
//

#import <Foundation/Foundation.h>
@class XGCalendar;
@protocol XGCalendarDataSource <NSObject>
@optional
- (NSArray *)XGCalendarView:(XGCalendar *)calendarView eventsForDate:(NSDate *)date;

@required
- (NSInteger)XGCalendarTableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
- (UITableViewCell *)XGCalendarTableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;

- (int)XGCalendarView:(XGCalendar *)CalendarView scheduleCountForDate:(NSDate *)date;
@end
